import {lazy} from "react"
import {Navigate} from "react-router-dom"
const Home = lazy(()=>import("../pages/Home/Home"))
const Login = lazy(()=>import("../pages/Login"))
const TestPaper = lazy(()=>import("../pages/Home/Testpaper"))
const Test = lazy(()=>import("../pages/Home/Tset"))
const Memmager = lazy(()=>import("../pages/Home/Memmager"))
const routerconfig = [
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"/home",
        element:<Home></Home>,
        children:[
            {
                path:"/home/testpaper",
                element:<TestPaper></TestPaper>
            },
            {
                path:"/home/test",
                element:<Test></Test>
            },
            {
                path:"/home/Memmager",
                element:<Memmager></Memmager>
            }
        ]
    },
    {
        path:"/",
        element:<Navigate to="/login"></Navigate>
    }

]
export default routerconfig